package cn.minimelon.solon.mapper.warehouse;

import org.beetl.sql.mapper.annotation.Param;
import org.beetl.sql.mapper.annotation.Select;
import org.beetl.sql.mapper.annotation.Template;

import java.util.List;

public interface DeptBuyMapper {
    @Select
    @Template("select mdb.id from mcms_dept_buy mdb where mdb.bill_mode in (16,20,66) and mdb.gen_status in (0, 10)" +
            " and mdb.target_stock_id = #{logicId} and mdb.close_status = 0")
    List<String> selectWaitGenList(@Param("logicId") String logicId);
}
